Leetcode Palindrome Number Solution Explained - Java